package com.chcit.share.generator.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 * @author liuyang
 * @Date 2017/5/23 22:31
 */
@Component
@Data
@ConfigurationProperties(prefix = GeneratorProperties.PREFIX)
public class GeneratorProperties {

    public static final String PREFIX = "share.generator";

    private Boolean kaptchaOpen = false;

    private Boolean swaggerOpen = false;

    private String fileUploadPath;

    private Boolean haveCreatePath = false;

    private Boolean springSessionOpen = false;

    private Boolean shareOpen = false;

    /**
     * 是否本地生成代码
     */
    private Boolean genLocal = false;
    /**
     * 默认的模板路径
     */
    private String templatesPath = "templates/style1";

    private Integer sessionInvalidateTime = 30 * 60;  //session 失效时间（默认为30分钟 单位：秒）

    private Integer sessionValidationInterval = 15 * 60;  //session 验证失效时间（默认为15分钟 单位：秒）

}
